package cn.cupk.logsystem.log;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import java.time.Instant;

@Data
public class LogRecord {
    private final Level level;
    private final String message;
    private final String loggerName;

    private final Instant instant;

    public LogRecord(Level level, String message, String loggerName) {
        this.level = level;
        this.message = message;
        this.loggerName = loggerName;
        this.instant = Instant.now();
    }

}
